package com.example.blog.modules.log.repository;

import com.example.blog.modules.log.entity.OperationLog;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

@Repository
public interface OperationLogRepository extends JpaRepository<OperationLog, Long>, JpaSpecificationExecutor<OperationLog> {
    
    Page<OperationLog> findByUsername(String username, Pageable pageable);
    
    Page<OperationLog> findByOperationContaining(String operation, Pageable pageable);
} 